//package com.example.zqathserver.controller;
//
//import org.springframework.http.HttpHeaders;
//import org.springframework.http.HttpStatus;
//import org.springframework.http.ResponseEntity;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestParam;
//import org.springframework.web.bind.annotation.RestController;
//
///**
// * HGJT信安世纪安全认证服务器
// */
//@RestController
//@RequestMapping("/ssoserver")
//public class HGJTXasjController {
//
//
//    @GetMapping("/moc2/authorize")
//    public ResponseEntity<?> authorize(
//            @RequestParam("response_type") String responseType,
//            @RequestParam("client_id") String clientId,
//            @RequestParam("redirect_uri") String redirectUri,
//            @RequestParam("state") String state,
//            @RequestParam(value = "display", required = false) String display) {
//        System.out.println("获取Authorization Code");
//        if (!"code".equals(responseType)) {
//            return ResponseEntity.badRequest().body("Invalid response_type");
//        }
//
//
//        // 重定向到 redirect_uri
//        return ResponseEntity.status(HttpStatus.FOUND)
//                .header(HttpHeaders.LOCATION, redirectUri)
//                .build();
//    }
//}
//
//
//
